@model OpenPac.Models.District

@{
    ViewBag.Title = "Create";
}

<h2>Create</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>District</legend>

		@Html.Partial("_CreateOrEdit", Model)

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

@using (Html.BeginForm("AddFromAddress", "Districts", FormMethod.Post))
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Address</legend>

        <div class="editor-label">
            <label for="street">Street</label>
        </div>
        <div class="editor-field">
            <input type="text" name="street" id="street" />
        </div>

        <div class="editor-label">
            <label for="city">City</label>
        </div>
        <div class="editor-field">
            <input type="text" name="city" id="city" />
        </div>

        <div class="editor-label">
            <label for="state">State</label>
        </div>
        <div class="editor-field">
            <input type="text" name="state" id="state" />
        </div>

        <div class="editor-label">
            <label for="zip">Zip</label>
        </div>
        <div class="editor-field">
            <input type="text" name="zip" id="zip" />
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>


